const fs =  require('fs')

fs.writeFile('1.txt','龚gie牛逼',(ele)=>{
  if(ele)throw(ele)
  fs.readFile('1.txt',(ele,data)=>{
    console.log(data.toString())
    
  })
})